package com.longteng.lesson.controller;

import com.longteng.lesson.po.MyUser;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator
 * DATE : 2018/5/20
 * TIME : 9:48
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Controller
public class JsrController {

    @RequestMapping("/handlerTest")
    public String handlerTest(){
//        try {
            System.out.println(1 / 0);
//        }catch (Exception e){
//            e.printStackTrace();
//        }
        return "index";
    }





    public static void main(String[] args) {
        List list = new ArrayList();
        list.add("b");
        list.add("a");
        list.add("c");
    }
}
